package com.yj.model;

import java.io.Serializable;
import java.util.Set;

public class Role implements Serializable {

	private static final long serialVersionUID = 1L;

	private Integer id;
	private String name;
	private Set<Student> students;
	private Set<Teacher> teachers;
	private Set<Admin> admins;

	public Role() {
	}

	public Role(String name) {
		this.name = name;
	}

	public Role(Set<Student> students, Set<Teacher> teachers, Set<Admin> admins) {
		super();
		this.students = students;
		this.teachers = teachers;
		this.admins = admins;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Set<Student> getStudents() {
		return students;
	}

	public void setStudents(Set<Student> students) {
		this.students = students;
	}

	public Set<Teacher> getTeachers() {
		return teachers;
	}

	public void setTeachers(Set<Teacher> teachers) {
		this.teachers = teachers;
	}

	public Set<Admin> getAdmins() {
		return admins;
	}

	public void setAdmins(Set<Admin> admins) {
		this.admins = admins;
	}

}
